package sanrenxing.dayEnd.backRepertoryTotal.domain;

import java.io.Serializable;

/**
 * 功能：证券库存表的实体类
 * 作者：赵思睿
 * 日期：2021/3/12 0012-13:53
 * 版本：1.0
 */
public class SecuritiesStock implements Serializable {
    //证券库存编号
    private String secId;
    //证券信息编号
    private String seId;
    //单位成本
    private double costs;
    //证券数量
    private int secNum;
    //总金额
    private double sumMoney;
    //统计日期
    private String dates;
    //基金编号
    private String fundId;
    //标志
    private int sign;
    //现金账户信息编号
    private String caId;

    /**
     * 默认构造方法
     */
    public SecuritiesStock() {
    }

    /**
     * 代餐构造方法
     * @param secId 证券库存编号
     * @param seId 证券信息编号
     * @param costs 单位成本
     * @param secNum 证券数量
     * @param sumMoney 总金额
     * @param dates 统计时间
     * @param fundId 基金信息编号
     * @param sign 标志
     */
    public SecuritiesStock(String secId, String seId, double costs, int secNum, double sumMoney, String dates, String fundId, int sign,String caId) {
        this.secId = secId;
        this.seId = seId;
        this.costs = costs;
        this.secNum = secNum;
        this.sumMoney = sumMoney;
        this.dates = dates;
        this.fundId = fundId;
        this.sign = sign;
        this.caId=caId;
    }

    //自动生成的setter/getter方法
    public String getSecId() {
        return secId;
    }

    public void setSecId(String secId) {
        this.secId = secId;
    }

    public String getSeId() {
        return seId;
    }

    public void setSeId(String seId) {
        this.seId=seId;
    }

    public int getSecNum() {
        return secNum;
    }

    public void setSecNum(int secNum) {
        this.secNum = secNum;
    }

    public double getSumMoney() {
        return sumMoney;
    }

    public void setSumMoney(double sumMoney) {
        this.sumMoney = sumMoney;
    }

    public String getDates() {
        return dates;
    }

    public void setDates(String dates) {
        if(dates.trim().equals("")){
            this.dates=null;
        }else{
            this.dates=dates.substring(0,10);
        }
    }

    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }

    public int getSign() {
        return sign;
    }

    public void setSign(int sign) {
        if(sign==0){
            this.sign=0;
        }else
        this.sign = sign;
    }

    public double getCosts() {
        return costs;
    }

    public void setCosts(double costs) {
        this.costs = costs;
    }

    public String getCaId() {
        return caId;
    }

    public void setCaId(String caId) {
        this.caId = caId;
    }
}
